package com.umeox.watch.moto.gallery.adapter;

import android.graphics.Rect;
import android.view.View;

import androidx.recyclerview.widget.RecyclerView;

public class QuickSettingDecoration extends RecyclerView.ItemDecoration {

    private int mHorizontalSpace;
    private int mVerticalSpace;

    public QuickSettingDecoration(int horizontalSpace, int verticalSpace) {

        mHorizontalSpace = horizontalSpace;
        mVerticalSpace = verticalSpace;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {

        RecyclerView.LayoutManager layoutManager = parent.getLayoutManager();
        if (layoutManager==null) {
            return;
        }

        outRect.top = mVerticalSpace;

    }
}
